#ifndef _TABLES_FIRMWARE_INFO_H
#define _TABLES_FIRMWARE_INFO_H
/*
 * Copyright 2011 Sylvain Bertrand (digital.ragnarok@gmail.com)
 * This fork is protected by the GNU affero GPLv3 with additionnal rights
 * Original code from Advanced Micro Devices, Inc.
 */

/*
 * common subset of all firmware_info revisions used of asic_init, as far as our
 * specs are uptodate
 */
struct firmware_info_subset {
	struct common_tbl_hdr hdr;
	__le32 firmware_rev;
	__le32 default_eng_clk;		/* in 10kHz unit */
	__le32 default_mem_clk;		/* in 10kHz unit */
} __packed;

struct firmware_info_v2_1 {
	struct firmware_info_subset subset;
	__le32 rsvd0[2];
	__le32 unused0[4];
	__le32 default_disp_clk_freq;		/* in 10 kHz unit */
	u8 rsvd1;
	u8 unused1;
	__le16 unused2[3];
	__le32 rsvd2;
	__le32 unused3;
	__le16 unused4[13];
	__le16 uniphy_dp_mode_ext_clk_freq;	/* in 10kHz unit, if 0; dp uses
						   internal pll as input clock,
						   else dp uses an external
						   clock */
	u8 unused5;
	u8 rsvd3[3];
} __packed;
#endif /* _TABLES_FIRMWARE_INFO_H */
